class DoctorInfo {
  String id,
      avatar,
      username,
      sectionType,
      sectionName,
      professionalLevel,
      professionalName,
      hospitalId,
      caree,
      skilled;

  DoctorInfo(
      {this.id,
      this.avatar,
      this.username,
      this.sectionType,
      this.sectionName,
      this.professionalLevel,
      this.professionalName,
      this.hospitalId,
      this.caree,
      this.skilled});

  factory DoctorInfo.fromJson(Map<String, dynamic> data) {
    return DoctorInfo(
      id: data['id'],
      avatar: data['avatar'],
      username: data['username'],
      sectionType: data['sectionType'],
      sectionName: data['sectionName'],
      professionalLevel: data['professionalLevel'],
      professionalName: data['professionalName'],
      hospitalId: data['hospitalId'],
      caree: data['caree'],
      skilled: data['skilled'],
    );
  }

  Map<String, dynamic> toMap() {
    return {
      'id': id,
      'avatar': avatar,
      'username': username,
      'sectionType': sectionType,
      'sectionName': sectionName,
      'professionalLevel': professionalLevel,
      'professionalName': professionalName,
      'caree': caree,
      'skilled': skilled,
      'hospitalId': hospitalId,
    };
  }
}
